/*
 * @Author: your name
 * @Date: 2021-09-06 11:25:01
 * @LastEditTime: 2021-09-13 16:49:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jinfeng_up\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        // 确定弹出框是否弹出
        showState: false,
        // 点击的是否是左边菜单栏或者左上角退出按钮
        showItem: false,
        // 跳转路径
        toPath: ''

    },
    mutations: {
        setShowState(state, value) {
            console.log(value)
            state.showState = value
        },
        setShowItem(state, value) {
            console.log(value)
            state.showItem = value
        },
        setToPath(state, value) {
            console.log(value)
            state.toPath = value
        }
    },
    actions: {},
    modules: {}
})
